public class Method2 {
    public static void main(String[] args) {
        sayHello("Chinese", "U", "Z", "I");
    }

    /**
     * 可变参数
     *
     * @param args
     */
    public static void sayHello(String... args) {

        switch (args[0]) {
            case "English":
                System.out.println("Hello" + args[1]);
                break;
            case "Chinese":
                System.out.println("你好" + args[1] + args[2] + args[3]);
        }
    }
}
